Embed a Numeric variable | The non appearance of embedded values in text |
To embed a numeric outcome within text, enter the numeric outcome name enclosed within curly brackets. Optional formatting parameters can be included.
Format: {Outcome-name:X:Y}
In the case of numeric outcomes the display format can be determined by adding a colon, field length X, colon, and then decimal places Y. Field length can be omitted, as shown in the second example below.
Example: {Total:6:2}
would display a numeric outcome Total in a field of 6 characters with 2 decimal places and right justified.
Example: {Total:0}
would display a numeric outcome Total in a field of appropriate characters with 0 decimal places and right justified.
Note that you MUST specify a number of decimal places in order to ensure that the numeric value of the outcome appears and NOT the List value. For example, if you had a calculated outcome called Total, with two outcome values of Higher and Lower, then putting {Total} in the text would mean that the words Higher or Lower would appear. This can be a useful feature when you are testing applications and also gives some flexibility.
e.g. Using text of:
the {Total} tax rate gives a taxable amount of {Total:0}
might display something like:
the Higher tax rate gives a taxable amount of 2500.